package com.tuozixuan.camel.step;

import org.apache.camel.builder.RouteBuilder;
import org.springframework.stereotype.Component;

@Component
public class StopDemoRoute extends RouteBuilder {

	@Override
	public void configure() {
	    
//	    from("timer:firedOnceTimer?repeatCount=1").setBody().constant("StopDemoRoute Bye")
//	    .choice()
//	        .when(body().contains("Hello")).to("mock:hello")
//	        .when(body().contains("Bye")).to("mock:bye").stop()
//	        .otherwise().to("mock:other")
//	    .end()
//	    .to("mock:result");
	}

}
